package com.tfjybj.itoo.exam.provider.service.impl;

import com.dmsdbj.itoo.tool.base.service.impl.BaseServicePlusImpl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.tfjybj.itoo.exam.entity.InstitutionEntity;
import com.tfjybj.itoo.exam.provider.dao.InstitutionDao;
import com.tfjybj.itoo.exam.provider.service.InstitutionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * InstitutionService接口实现类
 * ${base}表
 *
 * @author 杨江涛
 * @version 2.0.0
 * @since 2.0.0 2018-11-15 10:35:56
 */
@Service("institutionService")
public class InstitutionServiceImpl extends BaseServicePlusImpl<InstitutionDao, InstitutionEntity> implements InstitutionService {
	
	//region 模板生成

    @Resource
    private InstitutionDao institutionDao;

	 @Override
    public PageInfo<InstitutionEntity> queryByLikeName(String name, Integer pageNum, Integer pageSize) {
        PageHelper.startPage(pageNum, pageSize);
        return new PageInfo<>(institutionDao.queryLikeName(name));
    }
	//endregion

    /* **********************************以下为非模板生成的内容********************************* */
}
